<%@ page language="java" import="java.util.*,java.sql.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!-- 
功能介绍：修改

 -->
<%@ include file="/files/db/conn.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>

<script type="text/javascript">
		function checkValue(){
				if(document.form.zuzhiname.value==""||document.form.zuzhiname.value==null)
				{
					alert("不能为空！");
					document.form.zuzhiname.focus();
					return false;
				}
				return true;
		}
</script>
</head>
<%
ResultSet rs = null;
try {
	stmt1 = conn.createStatement();
	String sql = "select * from t_zuzhi where  id = '"+request.getParameter("ID")+"' ";
	rs = stmt.executeQuery(sql);
	if(rs.next()){
%>
<body class="ContentBody">
  <form action="files/zuzhi/updateDao.jsp" method="post"  name="form" onSubmit="return checkValue()" >
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
   <tr>
      <td height="10">&nbsp;</td>
  </tr>
  <tr>
      <td align="left" ><font color="blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;组织信息>>修改</font></td>
  </tr>
  <tr>
    <td class="CPanel">		
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">	
		<input name="id" value="<%=rs.getString("id")%>"  type="hidden" />
		<tr>
			<td width="100%">
				<fieldset style="height:100%;">
				<legend>组织信息</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  <tr>
					    <td align="right" width="19%">组织名称:</td>
					    <td width="35%"><span class="red">
				        <input name='zuzhiname' type="text" class="text" style="width:354px" value="<%=rs.getString("zuzhiname")%>"/>
				        *</span>
				        </td>
					  </tr>
					  </table>
			  <br />
				</fieldset>			</td>
			
		</TR>
		
		
		
		</TABLE>
	
	
	 </td>
  </tr>
		
		<TR>
			<TD colspan="2" align="center" height="50px">
			<input type="submit" name="submitbut" value="保存" class="button" />　
			
			<input type="reset" name="reset" value="重置" class="button"  /></TD>
		</TR>
		</TABLE>
	
<%
	}
} catch (Exception e) {
	out.print(e.getMessage());
} finally {
	if (rs != null) {
		try {
	rs.close();
		} catch (Exception e) {
	e.printStackTrace();
		}
	}
	if (stmt != null) {
		try {
			stmt.close();
		} catch (Exception e) {
	e.printStackTrace();
		}
	}
	if (conn != null) {
		try {
	conn.close();
		} catch (Exception e) {
	e.printStackTrace();
		}
	}
}
%>
</div>
</form>
</body>
</html>
